<?php if ($gtAccount != NULL): 
	$editType = 'Edit Record';
	$editAction = array('action' => 'edithour');
?>

<?php echo $this->element('employeeHeader');?>
<hr/>
<!-- weekview -->
<?php echo $this->element('weekView',array(
	'editType'=>$editType,
	'editAction'=>$editAction,
	'prev'=>array($employee['Employee']['employee_id'], $weekId + 1),
	'next'=>($weekId > 0)?array($employee['Employee']['employee_id'], $weekId-1):false,
));?>
<!-- table shows hour entries for this employee, populated with data received from controller-->
<?php echo $this->element('hourTable',array(
	'editType'=>$editType,
	'editAction'=>$editAction,
	'hours'=>$hours,
));?>
<?php else: ?>
<h1> Invalid Login </h1>
<?php endif ?>

    
